#ifndef KEYFRAME_H
#define KEYFRAME_H
#include "StompedReality/Core.h"
#include "StompedReality/Core/TypeSystem/TypeSystem.h"
#include "StompedReality/Math/Vector2.h"
namespace StompedReality
{
namespace animation
{
/*!
 * \author	Stefan Kazalski
 *
 * \brief	Key frame type helper
 */
struct KeyFrameReg
{
  static int registeType( );
};

/*!
 * \author	Stefan Kazalski
 *
 * \brief	Key Frame.
 *
 *    Stores keyframe informaiont.<br>
 *    - rotation
 *    - translation (later)
 *    - size (later)
 */
class DLL_EXPORT KeyFrame
{
  friend struct KeyFrameReg;

 protected:

  // rotation
  float _rotation;

  // duration
  float _duration;

 public:

  //!	\brief	Constructor.
  KeyFrame( );

  //!	\brief	Destructor.
  ~KeyFrame( );

  //!	\brief	Rotation setter.
  void SetRotation ( float rotation );

  //!	\brief	Rotation getter.
  float GetRotation( );

  //!	\brief	Duration setter.
  void setDuration ( float duration );

  //!	\brief	Duration getter.
  float getDuration( );
};

static int KeyFrameTypeReg = KeyFrameReg::registeType( );

}
}
#endif // KEYFRAME_H
